/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2023. All rights reserved.
 * Description: make cmci parameters configurable
 * Author: Lv Ying
 * Create: 2020-03-25
 */

#ifndef _LINUX_EULEROS_CMCI_H
#define _LINUX_EULEROS_CMCI_H
#ifdef CONFIG_EULEROS_CMCI_FREQUENCY_CONFIGURABLE
extern unsigned int g_ce_count_threshold;
extern unsigned int g_poll_interval;
extern int g_cmci_storm_threshold;
extern int g_poll_times;

#define CMCI_POLL_TIMES                 (g_poll_times)
#else
#define CMCI_POLL_TIMES                 0
#endif

#define MAX_CMCI_THRESHOLD		(0x7fffULL)
#define MAX_CMCI_POLL_INTERVAL		(300)
#define MAX_CMCI_STORM_THRESHOLD	(15)
#endif
